//
//  UIView+HLFrame.m
//  HL-百思不得姐
//
//  Created by admin on 16/5/7.
//  Copyright © 2016年 CHL. All rights reserved.
//

#import "UIView+HLFrame.h"

@implementation UIView (HLFrame)

-(void)setHL_width:(float)HL_width
{
    CGRect rect = self.frame;
    rect.size.width = HL_width;
    self.frame = rect;
}
- (float)HL_width
{
    return self.frame.size.width;
}

-(void)setHL_height:(float)HL_height
{
    CGRect rect = self.frame;
    rect.size.height = HL_height;
    self.frame = rect;
}
- (float)HL_height
{
    return self.frame.size.height;
}

-(void)setHL_x:(float)HL_x
{
    CGRect rect = self.frame;
    rect.origin.x = HL_x;
    self.frame = rect;
}
- (float)HL_x
{
    return self.frame.origin.x;
}

-(void)setHL_y:(float)HL_y
{
    CGRect rect = self.frame;
    rect.origin.y = HL_y;
    self.frame = rect;
}
- (float)HL_y
{
    return self.frame.origin.y;
}
@end
